package softwareinlife.android.ux.option;




import softwareinlife.android.ux.R;
import softwareinlife.android.ux.ServerConnect;
import softwareinlife.android.ux.StandAlone;
import softwareinlife.android.ux.R.id;
import softwareinlife.android.ux.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;



public class OptionSelect2Activity extends Activity implements OnClickListener
{
	public Float x1;
	public Float y1;
	
	private Button stand;
	private Button server;
	
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
        setContentView(R.layout.optionselect2);
        
        stand = (Button) findViewById(R.id.Click1);
        server = (Button) findViewById(R.id.Click2);
        
        stand.setOnClickListener(this);
        server.setOnClickListener(this);
    }
	
	public void onClick(View v)
	{
		switch (v.getId())
		{
			case R.id.Click1:
				Intent i = new Intent(this, StandAlone.class);
				startActivity(i);
			break;
				
			case R.id.Click2:
				Intent j = new Intent(this, ServerConnect.class);
				startActivity(j);
			break;
		}
	}
	
	public void onStop()
	{
		super.onStop(); 
	}
	
	
	/*
	@Override
    public boolean onTouchEvent(MotionEvent event) 
	{
    	switch (event.getAction())
        {
			case MotionEvent.ACTION_DOWN:
				
				x1 = event.getX();
				
				y1 = event.getY();
				
				try{
					System.out.println("x : " + x1.toString());
					System.out.println("y : " + y1.toString());
					
				}catch(Exception e){}
				
				if(x1 >= 132 && x1 <= 175 && y1 >= 361 && y1 <= 405)
				{
					
					//Intent i = new Intent(this, Checkbox1.class);
					
					//startActivity(i);
					
					
					//openDialog();
				}
				
			break;
        }
    	
    	return true;
    	
	}
    
    @Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;}
	*/
}